<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
	var str = 'ab-cd-ef';
	
	//alert(str.search('c'));
	//alert(str.substring(2,5));
	//alert(str.charAt(3));
	var arr = str.split('-');
	alert(arr);
</script>
</head>

<body>
</body>
</html>
